// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
/* base style */
import '../static/lib/css/base.scss'

/*vant ui */
import Vant from 'vant';
import 'vant/lib/vant-css/index.css';
Vue.use(Vant);

/* @desc:httpInterceptor */
import {request,response} from './service/httpInterceptor'
axios.interceptors.request.use(request)
axios.interceptors.response.use(response);

/*filter*/
import filter from './plugin/filter'
Vue.use(filter)

/*method*/
import pluginMethod from './plugin/method'
Vue.use(pluginMethod)

/* fastclick */ 
import FastClick from 'fastclick'
FastClick.attach(document.body)

import VueLazyLoad from 'vue-lazyload'
Vue.use(VueLazyLoad,{
    error:'./../static/lib/img/error.png',
    loading:'./../static/lib/img/loading.png'
})
// vuex
import store from './vuex/index'
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
